//
//  FQHelpTipController.swift
//  SwiftProject
//
//  Created by 董駸 on 2022/9/5.
//

import UIKit

class FQHelpTipController: BaseListSectionController {
    var model : FQHelpTipModel!
    
    override init() {
        super.init()
        inset = UIEdgeInsets(top: 0, left: 16, bottom: 16, right: 16)
    }
    
    override func sizeForItem(at index: Int) -> CGSize {
        return CGSize(width: SCREEN_WIDTH - 32, height: 66)
    }
    
    override func cellForItem(at index: Int) -> UICollectionViewCell {
        let cell = dequeueReusableCell(cellType: FQHelpTipCollectionViewCell.self, index: index)
        cell.actionBlock = { [unowned self] in
            self.viewController?.navigationController?.qmui_pushViewController(FQOrganizationPhoneViewController(), animated: true)
        }
        return cell
    }
    
    override func didUpdate(to object: Any) {
        model = object as? FQHelpTipModel
    }
}
